/*
 *  Copyright@2024 河北智胜物语科技有限公司 保留所有权利
 */
package org.dromara.common.core.exception;

/**
 * 封装业务异常类
 *
 * @author admin
 * @date 2020/7/13 15:04
 */
public class BusinessServiceException extends RuntimeException {

    private int code;

    public BusinessServiceException(int code) {
        this.code = code;
    }

    public BusinessServiceException(int code, String message) {
        super(message);
        this.code = code;
    }

    public BusinessServiceException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public int getCode() {
        return this.code;
    }
}
